<template>
	<view>
		<!-- 注意，如果需要兼容微信小程序，最好通过setRules方法设置rules规则 -->
		<u--form labelPosition="left" :model="model1" :rules="rules" ref="form1">
			<u-form-item label="姓名" prop="userInfo.name" borderBottom ref="item1">
				<u--input v-model="model1.userInfo.name" border="none"></u--input>
			</u-form-item>
			
			
			<u-form-item label="电话" prop="userInfo.phone" borderBottom ref="item1">
				<u--input v-model="model1.userInfo.phone" border="none"></u--input>
			</u-form-item>
			
			<u-form-item label="性别" prop="userInfo.gender" borderBottom ref="item1">
				<u--input v-model="model1.userInfo.gender" border="none"></u--input>
			</u-form-item>
			
			<u-form-item label="地址" prop="userInfo.place" borderBottom ref="item1">
				<u--input v-model="model1.userInfo.place" border="none"></u--input>
			</u-form-item>
			<u-form-item label="注册时间" prop="userInfo.subTime" borderBottom ref="item1">
				<u--input v-model="model1.userInfo.subTime" border="none"></u--input>
			</u-form-item>
			<u-form-item label="id卡号" prop="userInfo.idCard" borderBottom ref="item1">
				<u--input v-model="model1.userInfo.idCard" border="none"></u--input>
			</u-form-item>

		</u--form>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				showSex: false,
				model1: {
					userInfo: {
						name: '',
						gender: '',
						phone: '',
						place: '',
						subTime: '',
						idCard: ''
						
						
					},
				},



			};
		},
		methods: {

		},
		onLoad() {
			this.$axios.post("/yz/roominfo")
				.then((r) => {
					console.log(r)
					this.model1.userInfo=r.data.data
				});
		}
	};
</script>

<style>
</style>
